﻿<%@ Page Language="C#" AutoEventWireup="true" Codebehind="PopupARFirePortection.aspx.cs"
    Inherits="MTRC.ODMS.Web.SOM.Popup.PopupARFirePortection" EnableViewStateMac="false" %>

<%@ Register Src="../UserControl/UCFirePortection.ascx" TagName="UCFirePortection"
    TagPrefix="uc1" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <link href="<%=ResolveUrl("~/CSS/common.css")%>" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../../Javascript/Menu/MainMenu.js"></script>
    <script type="text/jscript" language="JavaScript" src="../../Javascript/CommonFunction.js"></script>
    <base target="_self" />
        <meta http-equiv="Expires" content="0" />
    <meta http-equiv="Cache-Control" content="no-cache" />
    <script type="text/javascript">
    
//            function InitPageAndSetControlValue()
//            {
//                    var tempStr = dialogArguments.document.getElementById("txtStaffID").value;
//                    document.getElementById("UCFirePortection1_txtRequestByID").value = tempStr;
//                 
//                    debugger;
//                    
//                    if(dialogArguments.document.getElementById("lblArrivalTime") != null)
//                    {
//                        tempStr = dialogArguments.document.getElementById("lblArrivalTime").value;
//                        document.getElementById("UCFirePortection1_lblIsolationDateTime").value = tempStr;
//                        if(tempStr == undefined || tempStr == "")
//                        {
//                            tempStr = dialogArguments.document.getElementById("lblArrivalTime").innerHTML;
//                            document.getElementById("UCFirePortection1_lblIsolationDateTime").innerText = tempStr;
//                        }
//                    }
//                    
//                    //imgStaffType
//                    //debugger;
//                    tempStr = dialogArguments.document.getElementById("imgStaffType").src;
//                    document.getElementById("UCFirePortection1_imgRequest").src = tempStr;

//                    
//                    if(dialogArguments.document.getElementById("txtStaffName") != null)
//                    {
//                        tempStr = dialogArguments.document.getElementById("txtStaffName").value;
//                        document.getElementById("UCFirePortection1_txtRequestByName").value = tempStr;
//                        if(tempStr == undefined || tempStr == "")
//                        {
//                            tempStr = dialogArguments.document.getElementById("txtStaffName").innerHTML;
//                            document.getElementById("UCFirePortection1_txtRequestByName").innerText = tempStr;
//                        }
//                    }
//                    
//                    if(dialogArguments.document.getElementById("txtDepartmentCompany") != null)
//                    {
//                        tempStr = dialogArguments.document.getElementById("txtDepartmentCompany").value;
//                        document.getElementById("UCFirePortection1_txtRequestByDept").value = tempStr;
//                        if(tempStr == undefined || tempStr == "")
//                        {
//                            tempStr = dialogArguments.document.getElementById("txtDepartmentCompany").innerHTML;
//                            document.getElementById("UCFirePortection1_txtRequestByDept").innerText = tempStr;
//                        }
//                    }
//                    
//                    if(dialogArguments.document.getElementById("txtOrganizationUnit") != null)
//                    {
//                        tempStr = dialogArguments.document.getElementById("txtOrganizationUnit").value;
//                        document.getElementById("UCFirePortection1_txtRequestByOU").value = tempStr;
//                        if(tempStr == undefined || tempStr == "")
//                        {
//                            tempStr = dialogArguments.document.getElementById("txtOrganizationUnit").innerHTML;
//                            document.getElementById("UCFirePortection1_txtRequestByOU").innerText = tempStr;
//                        }
//                    }
//                    
//                    if(dialogArguments.document.getElementById("txtContactNo") != null)
//                    {
//                        tempStr = dialogArguments.document.getElementById("txtContactNo").value;
//                        document.getElementById("UCFirePortection1_txtRequestByContactNumber").value = tempStr;
//                        if(tempStr == undefined || tempStr == "")
//                        {
//                            tempStr = dialogArguments.document.getElementById("txtContactNo").innerHTML;
//                            document.getElementById("UCFirePortection1_txtRequestByContactNumber").innerText = tempStr;
//                        }
//                    }
//                    
//                    if(dialogArguments.document.getElementById("txtEstimatedCompletionTime") != null)
//                    {
//                        tempStr = dialogArguments.document.getElementById("txtEstimatedCompletionTime").value;
//                        document.getElementById("UCFirePortection1_txtIsolationDuration").value = tempStr;
//                        if(tempStr == undefined || tempStr == "")
//                        {
//                            tempStr = dialogArguments.document.getElementById("txtEstimatedCompletionTime").innerHTML;
//                            document.getElementById("UCFirePortection1_txtIsolationDuration").innerText = tempStr;
//                        }
//                    }
//                    
//                    tempStr = dialogArguments.document.getElementById("lblShouldCompletionTime").innerHTML;  //can not use value, BKZ, it in UpdatePanel,
//                    tempStr = dialogArguments.document.getElementById("lblShouldCompletionTime").innerText;
//                    document.getElementById("UCFirePortection1_lblEstimatedIsolationDate").innerText = tempStr; //can not use value, BKZ, it in UpdatePanel,
//                    
//                    if(dialogArguments.document.getElementById("txtHandoverCheckDetail") != null)
//                    {
//                        tempStr = dialogArguments.document.getElementById("txtHandoverCheckDetail").value;
//                        document.getElementById("UCFirePortection1_txtHandoverNote").value = tempStr;
//                        if(tempStr == undefined || tempStr == "")
//                        {
//                            tempStr = dialogArguments.document.getElementById("txtHandoverCheckDetail").innerHTML;
//                            document.getElementById("UCFirePortection1_txtHandoverNote").innerText = tempStr;
//                        }
//                    }
//                    
//                    //chkHandoverCheck //checked
//                    if(dialogArguments.document.getElementById("chkHandoverCheck").checked)
//                    {
//                        //chkHandoverCheck
//                        document.getElementById("UCFirePortection1_chkHandoverNot").checked = true;
//                    }
//                    
//                    if(dialogArguments.document.getElementById("hidArrivalTimePrototype") !=null)
//                    {
//                        document.getElementById("UCFirePortection1$hdnInitDateTime").value= dialogArguments.document.getElementById("hidArrivalTimePrototype").value;
//                    }
//                    
//                    if(dialogArguments.document.getElementById("hdnStaffOrExtPartyID") !=null)
//                    {
//                        document.getElementById("UCFirePortection1_hdnRequestStaffOrExtPartyID").value = dialogArguments.document.getElementById("hdnStaffOrExtPartyID").value;
//                    }
//               }onload="InitPageAndSetControlValue();" 
               
    </script>

    <link href="" rel="stylesheet" type="text/css" />
    <link href="" rel="stylesheet" type="text/css" />
    <link href="" rel="stylesheet" type="text/css" />
</head>
<body >
    <form id="form1" runat="server">
        <table align="center" width="98%">
            <tr>
            <td>
                <fieldset>
                    <legend>
                        <asp:Label runat="server" ID="lblLegend">防火保护系统状态</asp:Label>
                    </legend>
                    <uc1:UCFirePortection ID="UCFirePortection1" runat="server"></uc1:UCFirePortection>
                </fieldset>
            </td>
            </tr>
            <tr>
               <td align="right">
                <span>
                    <asp:Button Text="SaveAndNew" runat="server" ID="btnSaveAndNew" OnClick="btnSaveAndNew_Click" Visible="False" />
                </span>
                <span>
                    <asp:Button Text="Save" runat="server" ID="btnSave" OnClick="btnSave_Click" />
                </span>
                <span style="padding-left: 8px;">                
                    <asp:Button Text="Cancel" runat="server" ID="btnCancel" OnClick="btnCancel_Click" />
                </span>
            </td>
            </tr>
        </table>    
    </form>
</body>
</html>
